package day07.zuoye.four;

public class Salesman extends Employee {
    private int salary2;

    public Salesman(int salary, int salary2) {
        super(salary);
        this.salary2 = salary2;
    }

    public String toString() {
        return "Salesman{}";
    }

    public int getSalary() {
        return salary2 + super.getSalary();
    }
}
